package cn.edu.my.test.event;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.JButton;
import javax.swing.JFrame;

public class EventThrouthInterface extends JFrame implements ActionListener {

	private static final long serialVersionUID = 2355710841752646399L;
	private JButton jb;

	//ͨ��ӿ�ʵ��
	public EventThrouthInterface() {
		jb = new JButton("ȷ��");
		jb.addActionListener(this);
		this.add(jb);
		this.setSize(300, 200);
		this.setDefaultCloseOperation(3);
		this.setVisible(true);
	}

	public void actionPerformed(ActionEvent e) {
		this.jb.setText("�¼���Ӧ��");
	}

	public static void main(String[] args) {
		new EventThrouthInterface();
	}
}